﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Skugo.Shared;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using System.Runtime.InteropServices;

namespace Skugo
{
    public class FileDialogManager : Plugin
    {
        /// <summary>
        /// The name of the remote type we wish to instantiate.
        /// </summary>
        private const String RemoteType = "Skugo.StandardPlugins.FileDialogManager";

        public FileDialogManager(Client client) :
            base(RemoteType, client)
        {
            this.CreateRemotePlugin();
        }


        // Called when packet data is received from our external counterpart
        protected override void OnReceive(Byte[] data)
        {
            //var incoming = data.ToBinaryReader();

            //var messageType = (MessageType)incoming.ReadByte();

            //switch (messageType)
            //{
            //    case MessageType.MouseEvent:
            //        {
            //            var e = new MouseEvent();
            //            ReadMouseEvent(incoming, e);

            //            if (this.OnMouseMove != null)
            //            {
            //                this.OnMouseMove(this, e);
            //            }
            //            break;
            //        }

            //    default:
            //        throw new Exception("Unhandled message type!");
            //}
        }
    }
}
